package cn.xopencode.userservice.rpc.user.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * 用户更新 Request DTO
 *
 * @author xiaodawei
 * @since 2021-09-14
 */
@Data
@Accessors(chain = true)
@ApiModel("更新用户")
public class UpdateUserDTO extends CreateUserDTO {
    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空")
    @ApiModelProperty(value = "用户主键", required = true)
    private String id;

}
